package com.feign.consumer.model;


import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("consumer")
public class ConsumerInfo {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String name;

    @TableField(exist = false, fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @TableField(exist = false, fill =  FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

    /**
     * 删除标记（0：正常；2：删除；）
     */
    @TableLogic(value = "0", delval = "2")
    private Integer deleteFlag;
}
